package com.shxs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shxs.model.entity.Dialog;
import com.shxs.model.entity.MINIMAX.MINIMAXRequest;
import com.shxs.model.entity.VoiceGenerateRequest;

import java.io.InputStream;
import java.util.stream.Stream;

/**
 * 语音生成服务
 *
 */

public interface MINIMAXService extends IService<MINIMAXRequest> {

    /**
     * 获取MINIMAX请求体
     *
     */
    MINIMAXRequest getMINIMAXRequest(Dialog dialog, VoiceGenerateRequest voiceGenerateRequest);

    /**
     * 提交请求并返回生成语音
     *
     */
    InputStream doRequest(MINIMAXRequest minimaxRequest, Integer index);
}
